package 通用权限检查器;

import java.util.UUID;

public class 通用权限检查器
{
    public static void main(String[] args){
        UUID uuid=UUID.randomUUID();
        User user=new User("hwm", 23, uuid,Permission.EDIT);
        Document document=new Document(uuid);
        System.out.println(PermissionChecker.hasPermission(user,document,Permission.EDIT));
        System.out.println(PermissionChecker.hasPermission(user,document,Permission.READ));

    }

}
class Document extends Resource{
    Document(UUID uuid){
        super(uuid);
    }
}
